package com.engr.springbooteasypoi.design.decorator.impl;

import com.engr.springbooteasypoi.design.decorator.LoginService;
import org.springframework.stereotype.Service;

/**
 * @program springboot-easypoi
 * @description: 装饰者实现
 * @author: LiuYanXin
 * @create: 2020-08-14 15:34
 */
@Service
public class ThirdLoginServiceImpl {


    private LoginService loginService;

    public ThirdLoginServiceImpl(LoginService loginService) {
        this.loginService = loginService;
    }

    public void login(String username) {

        loginService.login(username);
    }

    public void sendMsg(String username) {
        System.out.println("username:" + username + "发送短信成功！");
    }
}
